

<script type="text/javascript">
$(document).ready(function() {
	$('input:checkbox').each(function () {
		this.checked = false;
	});
	
    $('#isOpenID').click(function() {
    	$('#lipassword').toggle();        
        $('#password').val('');

        if (this.checked) {
            $('#loginForm').attr('action','/auth/loginopenid');
        } else {
            $('#loginForm').attr('action','/auth/login');
        }
    });
    
});
	
</script>

<? $this->formLogin->getElement('password')->setAttrib('class', 'field'); ?>
<? $this->formLogin->getElement('isOpenID')->setAttrib('class', ''); ?>

<!--###Blocco Centrale###-->
    <div id="content">
	    <div class="borderLeftWhite">
	        <? if (!empty($this->errorMsg)): ?>
	    	<div id="opsLoginForm">
	    		<div class="tabs">Ops!!!</div>
				<ul class="ulOpsLogin">
					<li class="errorli">
						<span>
							<?= $this->escape($this->errorMsg) ?>  
						</span>
					</li>
				</ul>    	
	    	</div>
	    	<? endif ?>
	    </div>	
    	<div class="loginForm">
	    	<?= $this->formLogin ?>
		</div>
	</div>	